<template>
  <!-- 下拉单选 多选 静态值集-->
  <lov
    v-if="props.columnData.fieldTypeCode == 'SELECT_ONE' && props.columnData.lovTypeCode == 'FIXED'"
    v-model:value="props.itemData[props.columnData.fieldCode]"
    :lovCode="props.columnData.lovCode"
    :disabled="props.columnData.disabled"
    @change="handelChange"
  ></lov>
  <lov
    v-else-if="props.columnData.fieldTypeCode == 'SELECT_MULTIPLE' && props.columnData.lovTypeCode == 'FIXED'"
    v-model:value="props.props.columnData[props.columnData.fieldCode]"
    :lovCode="props.columnData.lovCode"
    :multiple="true"
    :collapseTags="true"
    :disabled="props.columnData.disabled"
    @change="handelChange"
  ></lov>
</template>

<script setup name="VinputNumber">
import { ref, reactive, computed, nextTick } from 'vue'
import { mixinsData } from '../hooks/mixinsData'
import lov from '@/components/lov'
const props = defineProps({
  columnData: {
    type: Object,
    default: () => {}
  },
  itemData: {
    type: Object,
    default: () => {}
  },
  rules: {
    type: Object,
    default: () => {}
  }
})

const { handelBlur, handelChange } = mixinsData(props.columnData, props.itemData, props.rules)
</script>
<style lang="scss"></style>
